//
//  UILabel+Extension.swift
//  Hweibome
//
//  Created by 何川 on 15/12/10.
//  Copyright © 2015年 hechuan. All rights reserved.
//

import UIKit

extension UILabel
{
    convenience init(textColor:UIColor,fontSize:CGFloat,maxWidth:CGFloat = 0)
    {
        self.init()
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(fontSize)
        
        if maxWidth > 0 {
            numberOfLines = 0
            preferredMaxLayoutWidth = maxWidth
        }
    }
}
